import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'goodsName_993bbab9_x3lo',
            name: "{{goodsName_993bbab9_x3lo}}",
            binding: 'goodsName',
            updateOn: 'blur',
            defaultI18nValue: '商品名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "goodsName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'goodsCode_685145ce_fzir',
            name: "{{goodsCode_685145ce_fzir}}",
            binding: 'goodsCode',
            updateOn: 'blur',
            defaultI18nValue: '商品编号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "goodsCode", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'specification_f465f0be_yo9n',
            name: "{{specification_f465f0be_yo9n}}",
            binding: 'specification',
            updateOn: 'blur',
            defaultI18nValue: '规格型号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "specification", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'category_e25dd830_2f4u',
            name: "{{category_e25dd830_2f4u}}",
            binding: 'category',
            updateOn: 'blur',
            defaultI18nValue: '分类名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "category", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'price_9835f144_zrhg',
            name: "{{price_9835f144_zrhg}}",
            binding: 'price',
            updateOn: 'blur',
            defaultI18nValue: '单价',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "price", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'number_24520ea3_mqh4',
            name: "{{number_24520ea3_mqh4}}",
            binding: 'number',
            updateOn: 'blur',
            defaultI18nValue: '上架数量',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "number", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'remark_130cf6d4_q6i0',
            name: "{{remark_130cf6d4_q6i0}}",
            binding: 'remark',
            updateOn: 'blur',
            defaultI18nValue: '备注',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "remark", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '商品01',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
